<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
  
<!-- Mirrored from bos.asmhackers.net/docs/filesystems/ntfs/indexroot.html by HTTrack Website Copier/3.x [XR&CO'2013], Tue, 07 Oct 2014 11:26:07 GMT -->
<head>
    <title>NTFS Documentation: Index Root Attribute</title>
  </head>

  <body>
      <h1><a href="index-2.html#NTFS" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/index.html#NTFS">NTFS</a> Documentation: Index Root <a href="attribute.html" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/attribute.html">Attribute</a></h1>

      <h2>Definition</h2>

      This is the <a href="dir.html#rnode" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/dir.html#rnode">root node</a> of the <a href="dir.html#btree" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/dir.html#btree">B+ tree</a> that implements an index (e.g. a <a href="dir.html" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/dir.html">directory</a>). This <a href="attribute.html" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/attribute.html">file attribute</a> is always <a href="attribute.html#resident" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/attribute.html#resident">resident</a>.
      <p>

      <h2><a name="layout">Layout of the <a href="attribute.html#stream" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/attribute.html#stream">stream</a></a></h2>

      Its layout is:
      <p>

      <table border=2 cellspacing=2 cellpadding=2>
	<tr bgcolor="#E0E0E0">
	  <th>Offset to the beginning of the <a href="attribute.html#stream" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/attribute.html#stream">stream</a></th>
          <th>Length</th>
          <th>Description</th>
        </tr>
	<tr>
	  <th>0</th>
	  <th>4</th>
	  <th><a href="attribute.html#type" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/attribute.html#type">Type</a> of the indexed <a href="attribute.html" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/attribute.html">attribute</a></th>
        </tr>
	<tr>
	  <th>4</th>
	  <th>4</th>
	  <th>Always 00 00 00 01?</th>
        </tr>
	<tr>
	  <th>8</th>
	  <th>4</th>
	  <th><a name="size">Size</a> of <a href="INDX.html" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/INDX.html">index buffer</a>s ?</th>
        </tr>
	<tr>
	  <th>C</th>
	  <th>4</th>
	  <th>Number of <a href="glossary.html#Cluster" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/glossary.html#Cluster">cluster</a>s per <a href="INDX.html" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/INDX.html">index buffer</a> ?</th>
        </tr>
	<tr>
	  <th>10</th>
	  <th>4</th>
	  <th>Always 00 00 00 10 ?</th>
        </tr>
	<tr>
	  <th>14</th>
	  <th>4</th>
	  <th>Size of the <a href="#seq_ie">sequence of index entries</a> + 10</th>
        </tr>
	<tr>
	  <th>18</th>
	  <th>4</th>
	  <th>Size of the <a href="#seq_ie">sequence of index entries</a> + 10 (sic)</th>
        </tr>
	<tr>
	  <th>1C</th>
	  <th>4</th>
	  <th><a href="#flags">Flags</a></th>
        </tr>
	<tr>
	  <th>20</th>
	  <th></th>
	  <th><a href="#seq_ie">Sequence of index entries</a></th>
        </tr>
      </table>
      <p>

      <dl>
        <dt><a name="flags">Flags</a>
          <dd><table border=2 cellspacing=2 cellpadding=2>
	        <tr bgcolor="#E0E0E0">
	          <th>Bit</th>
                  <th>Signification</th>
                </tr>
                <tr>
                  <th>00 00 00 01</th>
                  <th>Large index</th>
                </tr>
              </table>
	      <p>

              The large index flag indicates whether the <a href="attribute.html" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/attribute.html">file attribute</a>s <a href="indexallocation.html" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/indexallocation.html">index allocation</a> and <a href="bitmap2.html" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/bitmap2.html">bitmap</a> are present (when the index is small enough to be stored completely in the <a href="dir.html#rnode" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/dir.html#rnode">root node</a>, these two <a href="attribute.html" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/attribute.html">file attribute</a>s are missing).
              <p>

        <dt><a name="seq_ie">Sequence of <a href="indexentry.html" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/indexentry.html">index entries</a></a>
          <dd>This is a sequence of <a href="indexentry.html" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/indexentry.html">index entries</a> that has a <a href="indexentry.html#length" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/indexentry.html#length">variable length</a>. The sequence is terminated with a special <a href="indexentry.html" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/indexentry.html">index entry</a> whose <a href="indexentry.html#last" tppabs="http://www.via.ecp.fr/~regis/ntfs/new/indexentry.html#last">last entry flag</a> is set.
              <p>

      </dl>
      <p>

      <hr>
      <address><a href="mailto:regis@via.ecp.fr">Regis Duchesne</a> at <a href="javascript:if(confirm('http://www.via.ecp.fr/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.via.ecp.fr/'" tppabs="http://www.via.ecp.fr/">VIA</a>, <a href="javascript:if(confirm('http://www.ecp.fr/  \n\nThis file was not retrieved by Teleport Pro, because it is addressed on a domain or path outside the boundaries set for its Starting Address.  \n\nDo you want to open it from the server?'))window.location='http://www.ecp.fr/'" tppabs="http://www.ecp.fr/">ECP</a>, France</address>
<!-- Created: Mon Dec  9 17:27:45 MET 1996 -->
<!-- hhmts start -->
Last modified: Sun Feb 14 15:14:24 PST 1999
<!-- hhmts end -->
  </body>

<!-- Mirrored from bos.asmhackers.net/docs/filesystems/ntfs/indexroot.html by HTTrack Website Copier/3.x [XR&CO'2013], Tue, 07 Oct 2014 11:26:07 GMT -->
</html>